package ModelLayer;

import java.util.ArrayList;
import java.util.Calendar;

public class SalesOrder 
{
	
	private long orderId;
    private Customer cust;
    private String date;
    private int amountAll;
    private int discount;
    private ArrayList<SalesProduct> orderProducts;
    private boolean deliveryStatus;
    private String returnDate;
    private double totalPrice;

    public SalesOrder(long orderId,Customer cust,boolean deliveryStatus,String returnDate)
    {
        this.orderId = orderId;
     
        this.cust = cust;
        this.returnDate = returnDate;
       
        orderProducts = new ArrayList<SalesProduct> ();
    }
	
    
    public void addProducts(SalesProduct newSales)
    {
       orderProducts.add(newSales);
      }
    
    public void setCustomer(Customer cust)
    {
        this.cust = cust;
    }
    
    public void setOrderId(long orderId)
    {
    	this.orderId = orderId;
    }
    
    public void setDiscount(int discount)
    {
    	this.discount = discount;
    }
    
    public void setReturnDate(String returnDate)
    {
    	this.returnDate = returnDate;
    }
    
    public void changeDeliveryStatus()
    {
    	deliveryStatus = true;
    }
    
    public long getOrderId()
    {
    	return orderId;
    }
	
    public int getDiscount()
    {
    	return discount;
    }
    
    public String getReturnDate()
    {
    	return returnDate;
    }
    
    public boolean getDeliveryStatus()
    {
    	return deliveryStatus;
    }

	
	
	
	    

}
